package com.yonyou.brigade.third_parties.meiya.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.yonyou.brigade.third_parties.common.model.ThirdUser;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author kangfw@yonyou.com
 * @since 2019-06-13
 */
@TableName("meiya_user")
public class MeiyaUser extends Model<MeiyaUser> implements ThirdUser {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户userId
     */
    @TableField("user_id")
    private String userId;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 组织信息
     */
    private String org;
    /**
     * 状态（0：离职；1：在职，默认在职）
     */
    private Integer status;
    /**
     * 证件类型:身份证/因公护照/因私护照/军人证/港澳通行证/国际海员证/台胞证/外国人永久居留身份证/其它
     */
    @TableField("cert_type")
    private String certType;
    /**
     * 证件号码
     */
    @TableField("cert_number")
    private String certNumber;
    /**
     * 中文姓名
     */
    @TableField("cn_name")
    private String cnName;
    /**
     * 公司编号
     */
    @TableField("company_id")
    private String companyId;
    /**
     * 部门名称 美亚集团/旅游产品部/运营中心
     */
    @TableField("d_name")
    private String dName;
    /**
     * 电子邮箱
     */
    private String email;
    /**
     * 英文姓名
     */
    @TableField("en_name")
    private String enName;
    /**
     * 职称ID
     */
    @TableField("holder_id")
    private String holderId;
    /**
     * 手机号码
     */
    private String mobile;
    /**
     * 对接方系统的旅客编号
     */
    @TableField("outside_passenger_id")
    private String outsidePassengerId;
    /**
     * 乘机人姓名
     */
    @TableField("passenger_name")
    private String passengerName;
    /**
     * 旅客类型:成人/儿童/婴儿
     */
    @TableField("passenger_type")
    private String passengerType;
    /**
     * 员工工号
     */
    private String staffId;
    /**
     * 登录用户名
     */
    private String userName;
    /**
     * 该条记录创建时间
     */
    @TableField("create_time")
    private Date createTime;
    private Date ts;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType;
    }

    public String getCertNumber() {
        return certNumber;
    }

    public void setCertNumber(String certNumber) {
        this.certNumber = certNumber;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getHolderId() {
        return holderId;
    }

    public void setHolderId(String holderId) {
        this.holderId = holderId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOutsidePassengerId() {
        return outsidePassengerId;
    }

    public void setOutsidePassengerId(String outsidePassengerId) {
        this.outsidePassengerId = outsidePassengerId;
    }

    public String getPassengerName() {
        return passengerName;
    }

    public void setPassengerName(String passengerName) {
        this.passengerName = passengerName;
    }

    public String getPassengerType() {
        return passengerType;
    }

    public void setPassengerType(String passengerType) {
        this.passengerType = passengerType;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String TENANT = "tenant";

    public static final String ORG = "org";

    public static final String STATUS = "status";

    public static final String CERT_TYPE = "cert_type";

    public static final String CERT_NUMBER = "cert_number";

    public static final String CN_NAME = "cn_name";

    public static final String COMPANY_ID = "company_id";

    public static final String D_NAME = "d_name";

    public static final String EMAIL = "email";

    public static final String EN_NAME = "en_name";

    public static final String HOLDER_ID = "holder_id";

    public static final String MOBILE = "mobile";

    public static final String OUTSIDE_PASSENGER_ID = "outside_passenger_id";

    public static final String PASSENGER_NAME = "passenger_name";

    public static final String PASSENGER_TYPE = "passenger_type";

    public static final String STAFFID = "staffId";

    public static final String USERNAME = "userName";

    public static final String CREATE_TIME = "create_time";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MeiyaUser{" +
        "id=" + id +
        ", userId=" + userId +
        ", tenant=" + tenant +
        ", org=" + org +
        ", status=" + status +
        ", certType=" + certType +
        ", certNumber=" + certNumber +
        ", cnName=" + cnName +
        ", companyId=" + companyId +
        ", dName=" + dName +
        ", email=" + email +
        ", enName=" + enName +
        ", holderId=" + holderId +
        ", mobile=" + mobile +
        ", outsidePassengerId=" + outsidePassengerId +
        ", passengerName=" + passengerName +
        ", passengerType=" + passengerType +
        ", staffId=" + staffId +
        ", userName=" + userName +
        ", createTime=" + createTime +
        ", ts=" + ts +
        "}";
    }
}
